package com.yupi.springbootinit.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.model.dto.book.BookQueryRequest;
import com.yupi.springbootinit.model.entity.Book;
import com.yupi.springbootinit.model.vo.BookVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author wzhRoot
* @description 针对表【book】的数据库操作Service
* @createDate 2023-12-16 16:10:06
*/
public interface BookService extends IService<Book> {

    /**
     * 获取查询条件
     *
     * @param bookQueryRequest
     * @return
     */
    QueryWrapper<Book> getQueryWrapper(BookQueryRequest bookQueryRequest);

    /**
     * 将分页查询到的book对象进行脱敏处理
     * @param bookPage
     * @param request
     * @return
     */
    Page<BookVO> getBookVOPage(Page<Book> bookPage, HttpServletRequest request);
}
